/*
 * @Description:
 * @Author: dongjunhua
 * @Date: 2021-01-23 11:15:40
 * @LastEditors: dongjunhua
 * @LastEditTime: 2021-02-11 10:38:20
 */

class Subject {
  constructor(
    loginType = 'default',
    ssoAddress = '',
    account = {},
    user = {},
    isAuthenticated = false,
    isPermitted = false,
    permittedRoutes = [],
    token = ''
  ) {
    this.initialized = true;
    this.loginType = loginType;
    this.ssoAddress = ssoAddress;
    this.account = account;
    this.user = user;
    this.isAuthenticated = isAuthenticated;
    this.isPermitted = isPermitted;
    this.permittedRoutes = permittedRoutes;
    this.token = token;
  }
}

export default Subject;
